package com.tf_cut.backend;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@MapperScan("com.tf_cut.backend.mapper") //扫描的mapper
@EnableEurekaClient
@EnableFeignClients
@EnableCircuitBreaker    // 熔断
@RestController
@EnableScheduling
public class BackEndServer
{
    public static void main( String[] args )
    {
    	SpringApplication.run(BackEndServer.class, args);
    }
}